PreviousNextTracker indexSee it online !

(152/314) 3382947 - TextTools: toggle line comment of last line throws exception

If the last line of a file is empty and we try to comment it (TextTools, Toggle Line Comment), we get an exception:

java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 16026
at org.gjt.sp.jedit.buffer.JEditBuffer.getLineOfOffset(JEditBuffer.java:336)
at org.gjt.sp.jedit.buffer.JEditBuffer.getRuleSetAtOffset(JEditBuffer.java:1756)
at org.gjt.sp.jedit.buffer.JEditBuffer.getContextSensitiveProperty(JEditBuffer.java:1791)
at org.gjt.sp.jedit.Buffer.getContextSensitiveProperty(Buffer.java:1069)
at TextToolsComments.toggleLineComments(Unknown Source)
... rest not important I guess

Today's svn.

Submitted jarekczek - 2011-07-30 - 17:15:43z Assigned nobody
Priority 5 Category None
Status Open Group None
Resolution None Visibility No

Comments

Attachments